﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IOEPModels
{
    public class Command
    {
        public Command(string name, ToDo toDo)
        {
            Name = name;
            Operation = toDo;
        }
        public delegate void ToDo(string[] args);
        public ToDo Operation { get; private set; }
        public string Name{ get; private set; }
        public void Execute(string[] args)
        {
            Operation(args);
        }
    }
}
